<div class="container" id="ForgotPsw">
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <h3 class="text-center">找回密码</h3>
            <div class="row">
                <div class="col-md-10 col-md-offset-2 col-sm-10 col-sm-offset-2">
                    <form class="form-horizontal reg-box" method="post" name="Form" novalidate="novalidate">
                        <div class="form-group has-feedback" ng-class="{'has-success':Form.IdentityNum.$valid && Form.IdentityNum.$dirty,'has-error': Form.IdentityNum.$dirty && form.identityNumber== undefined}">
                            <label class="col-md-2 col-sm-2 control-label"><em class="must-point">*</em>身份证号：</label>
                            <div class="col-md-6 col-sm-6">
                                <input type="text" class="form-control" name="IdentityNum" placeholder="请输入18位身份证号码" required ng-minlength="18" ng-maxlength="18" ng-pattern="/^\d{17}(\d|X)$/" ng-model='form.identityNumber' >
                                <span class="glyphicon form-control-feedback" aria-hidden="true" ng-class="{'glyphicon-ok':Form.IdentityNum.$valid && Form.IdentityNum.$dirty ,'glyphicon-remove':Form.IdentityNum.$dirty && form.identityNumber == undefined}"></span>
                            </div>
                            <div class="col-md-4">
                                <!--<span ng-show="IdentityNumCheckResult!=0">{{IdentityNumCheckMessage}}</span>-->
                            </div>
                        </div>
                        <div class="form-group has-feedback"  ng-class="{'has-success':Form.Password.$valid,'has-error':Form.Password.$invalid&&Form.Password.$dirty}">
                            <label class="col-md-2 col-sm-2 control-label"><em class="must-point">*</em>新密码：</label>
                            <div class="col-md-6 col-sm-6">
                                <input type="password" id="Password" name="Password" class="form-control" placeholder="请输入新密码" required ng-model="form.password">
                                <span class="glyphicon form-control-feedback" aria-hidden="true" ng-class="{'glyphicon-ok':Form.Password.$valid,'glyphicon-remove':Form.Password.$invalid&&Form.Password.$dirty}" ></span>
                            </div>
                            <div class="col-md-4"></div>
                        </div>
                        <div class="form-group has-feedback" ng-class="{'has-success':Form.Password.$valid&&Form.newPassword.$dirty&&form.password==form.newPassword,'has-error':Form.Password.$valid&&Form.newPassword.$dirty&&form.password!=form.newPassword}">
                            <label class="col-md-2 col-sm-2 control-label"><em class="must-point">*</em>确认新密码：</label>
                            <div class="col-md-6 col-sm-6">
                                <input type="password" name="newPassword" class="form-control" placeholder="请输入确认新密码" required ng-model="form.newPassword">
                                <span class="glyphicon form-control-feedback" aria-hidden="true" ng-class="{'glyphicon-ok':Form.Password.$valid&&form.password==form.newPassword&&Form.newPassword.$dirty,'glyphicon-remove':Form.Password.$valid&&form.password!=form.newPassword&&Form.newPassword.$dirty}" ></span>
                            </div>
                            <div class="col-md-4"><span ng-show="Form.Password.$valid&&form.password!=form.newPassword&&Form.newPassword.$dirty">*两次密码输入不一致</span></div>
                        </div>
                        <div class="form-group has-feedback"  ng-class="{'has-success':Form.verifyCode.$valid && ImageCodeVerifyResult==0,'has-error':Form.verifyCode.$invalid && Form.verifyCode.$dirty || ImageCodeVerifyResult != 0 && Form.verifyCode.$dirty }">
                            <label class="col-md-2 col-sm-2 control-label"><em class="must-point">*</em>验证码：</label>
                            <div class="col-md-6 col-sm-6 ">
                                <input type="text" name="verifyCode" class="form-control" placeholder="请输入验证码" required ng-model="form.verifyCode" ng-change="VerifyImageCode()">
                            </div>
                            <div class="col-md-4 col-sm-4 ">
                                <img ng-src="{{img}}" alt="验证码" ng-click="getVerifyImage()" style="width:70px;height:30px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6  col-md-offset-2 col-sm-6  col-sm-offset-2 ">
                                <div class="text-center mt reg-btn">
                                    <button ng-click="submitPsw()" class="btn btn-primary" ng-disabled="Form.$invalid || form.password != form.newPassword || ImageCodeVerifyResult != 0">重置密码</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            
        </div>
    </div>
</div>